package com.cskaoyan.wordmemorize.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cskaoyan.wordmemorize.dao.entity.UserVocExampleSentenceDO;
import com.cskaoyan.wordmemorize.dao.entity.VocDO;
import jakarta.annotation.Nullable;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface VocMapper extends BaseMapper<VocDO> {

    Page<VocDO> getVocabularyInfo(@Param("bookId") @Nullable Long bookId
            , @Param("chapterId") @Nullable Long chapterId, @Param("keyword") @Nullable String keyword, Page<VocDO> pageInfo);

}
